|
|
|
|
Capacity Property, CellCollectionClass Class |
Defines the number of cells that the CellCollectionClass instance can contain.
Syntax CellCollectionClass Class (Softelvdm.SftTreeNET)
VB |
Public Property Capacity As Integer |
C# |
public int Capacity { get; set; } |
C++ |
public: property int Capacity { |
Property Value
The number of cells.
Comments
The Capacity property defines the number of cells that the CellCollectionClass instance can contain.
Capacity is the number of cells that the CellCollectionClass instance can store. Count is the number of elements that are actually in the CellCollectionClass instance.
Capacity is always greater than or equal to Count. If Count exceeds Capacity while adding elements, the capacity is automatically increased by reallocating the internal array before copying the old cells and adding the new cells.
The capacity can be decreased by setting the Capacity property explicitly. When the value of Capacity is set explicitly, the internal array is also reallocated to accommodate the specified capacity.